/**
 * Created by ucmed on 2017/5/6.
 */
app.controller('loginController', function ($scope,$rootScope,$state,$cookieStore) {
    $cookieStore.remove("zdxtToken");
    $rootScope.bodyClass = 'backH';
    // $rootScope.rightShow=false
    $rootScope.rightShow=false
    $scope.login=function () {
        $cookieStore.put("zdxtToken", "token")
        $state.go('app.resindex')
        // $rootScope.logins=true
        $rootScope.bodyClass = 'backNone'
        console.log($rootScope)
        // $rootScope.m=true
       
    }
   ;

    $rootScope.logins=false
    $scope.disable=true
    console.log($scope.userName)
    // if($scope.userName!=''){
    //     $scope.disable=false
    // }
    $scope.remember=function () {
        check=true
    }

});